import Mock from 'mockjs'
import Account from './Account'
import Image from './Image'
import User from './User'
import Categories from './Categories'
Mock.mock('http://api/login', 'post', () => {
  return Account.loginSuccess
})
Mock.mock('http://api/reset_password_by_send_email', 'get', () => {
  return Account.sendEmailForResetPasswordSuccess
})
Mock.mock('http://api/register', 'post', () => {
  return Account.registerSuccess
})
Mock.mock('http://api/images', 'get', () => {
  return Image.getImageListSuccess
})
Mock.mock('http://api/images/collect', 'post', () => {
  return Image.imageCollectSuccess
})
Mock.mock('http://api/user/1', 'get', () => {
  return User.getUserSuccess
})
Mock.mock('http://api/images/post?userId=1', 'get', () => {
  return Image.getPostListSuccess
})
Mock.mock('http://api/images/collect?userId=1', 'get', () => {
  return Image.getCollectListSuccess
})

Mock.mock('http://api/categories', 'get', () => {
  return Categories.getCategories
})
Mock.mock('http://api/images?category=c1', 'get', () => {
  return Image.getCategoryImageListSuccess
})
